package com.cskaoyan.mall.mapper;

import com.cskaoyan.mall.bean.vo.OrderGoodsStatVO;
import com.cskaoyan.mall.bean.bo.OrderListBO;
import com.cskaoyan.mall.bean.bo.OrderShipBO;
import com.cskaoyan.mall.bean.vo.OrderStatVO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import com.cskaoyan.mall.bean.Order;

/**
 *Created by Zsp
 *2021/1/9
 */
public interface OrderMapper<selectAllById> {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    Integer selectAll();

    List<Order> selectOrderList(OrderListBO orderListBO);

    Order selectAllById(@Param("id")Integer id);

    int updateOrderRefund(Integer orderId);

    int updateOrderShip(OrderShipBO orderShipBO);
    //统计报表的订单统计
    List<OrderStatVO.RowsBean> selectOrderStat();
    //统计报表的商品统计
    List<OrderGoodsStatVO.RowsBean> selectOrderGoodsStat();
}